Ext.define('Jason.view.protal.authentication.AuthenticationModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.authentication',
    formulas: {
        userInfo: function () {
            try {
                return cfg.sub.accountInfo;
            } catch (e) {
                return '暂无人员登录';
            }
        }
    },
    data: {
        userid: Ext.isEmpty(local.get('usid')) ? "" : local.get('usid'),
        fullName: '',
        password: Ext.isEmpty(local.get('pwd')) ? "" : local.get('pwd'),
        email: '',
        persist: !Ext.isEmpty(local.get('usid')),
        agrees: false
    }
});